<form name="fenpei_form" class="form-inline" id="fenpei_form" action="{:U('customer/receive')}"  method="post">
	{:L('WILL_BE_ALLOCATED_TO_THE_CUSTOMERS')}:
	<input type="hidden" name="customer_id" value="{$customer_id}" />
	<input type="hidden" name="owner_role_id" id="owner_role_id" value="{$Think.session.role_id}"/>
	<input type="text" name="owner_name" id="owner_name" class="form-control" value="{$Think.session.full_name}"/>
	
	<p style="float:right;line-height: 30px;">
		{:L('INFORM_THE_WAY')}&nbsp;&nbsp;<input type="checkbox" name="message_alert" value="1" checked="checked">{:L('STAND_INSIDE_LETTER')} &nbsp;
		<if condition="F('sms')">
			<input type="checkbox" name="sms_alert" value="1">{:L('NOTE')} &nbsp; 
		</if>
		<input type="checkbox" name="email_alert" value="1" style="display: none">{/*:L('EMAIL')*/}
	</p>
</form>
<div style="display:none;" id="dialog-role-list2" title="{:L('SELECT_ALL_THE_PEOPLE')}">
	<div class="spiner-example">
		<div class="sk-spinner sk-spinner-three-bounce">
			<div class="sk-bounce1"></div>
			<div class="sk-bounce2"></div>
			<div class="sk-bounce3"></div>
		</div>
	</div>
</div>
<script type="text/javascript">
	$("#dialog-role-list2").dialog({
		autoOpen: false,
		modal: true,
		width: 750,
		maxHeight: 400,
		buttons: {
			"确定": function () {
				$('#owner_name').val(sessionStorage.getItem("nameskey"));
				$('#owner_role_id').val(sessionStorage.getItem("idskey"));
				$(this).dialog("close");
			},
			"取消": function () {
				$(this).dialog("close");
			}
		},
		position: ["center", 100]
	});
	$(function(){
		$("#owner_name").click(
			function(){
				$('#dialog-role-list2').dialog('open');
				$('#dialog-role-list2').load('{:U("user/listdialog")}');
			}
		);
	});
</script>